<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class ExamResults extends Model
{
    use  Notifiable;
    protected $table = 'exam_results';
    protected $fillable = [
        's_id', 'e_number','semester_id','e_jd_codes'
        ,'e_codes','credit','e_name','time','serial_number'
        ,'is_make_up','is_required'
    ];
    public function Students()
    {
        return $this->hasOne('App\Models\Student','id','s_id');
    }
    public function Semesters()
    {
        return $this->hasOne('App\Models\Semester','id','semester_id');
    }
}
